#ifndef TCA9539_H
#define TCA9539_H
#include "bsp_i2c.h"
#define CMDINPUT0	0x00
#define CMDINPUT1	0x01
#define CMDOUTPUT0	0x02
#define CMDOUTPUT1	0x03
#define CMDINVER0	0x04
#define CMDINVER1	0x05
#define CMDCFG0		0x06
#define CMDCFG1		0x07

#ifdef __cplusplus
extern "C" {
#endif
void TCA9539_init(void);
void ledcontrol(uint8_t ledstatus);
void TCA9539_CFG(uint8_t cfg0,uint8_t cfg1);
#ifdef __cplusplus
};
#endif

#endif